package com.xinqi.modules.chat.chat.message.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.chat.chat.message.domain.ChatTopMessageEntity;
import com.xinqi.modules.chat.chat.message.dto.req.ChatMessageTopDTO;
import com.xinqi.modules.chat.chat.message.dto.rsp.ChatTopMessageResultDTO;
import org.mapstruct.Mapper;

/**
 * 聊天消息置顶表转换
 *
 * @author: yyzhen
 * @date: 2023/06/29
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class ChatTopMessageConvert {
    public abstract ChatTopMessageEntity create(ChatMessageTopDTO s);

    public abstract ChatTopMessageResultDTO convert(ChatTopMessageEntity s);
}
